//
//  MJChangeController.m
//  WeCahtQQLogin
//
//  Created by HappyMilk 02 on 2017/2/9.
//  Copyright © 2017年 HappyMilk 02. All rights reserved.
//

#import "MJChangeController.h"

@interface MJChangeController ()

@property (weak, nonatomic) IBOutlet UILabel *label_title;
@property (weak, nonatomic) IBOutlet UITextField *textfiled;

@property (weak, nonatomic) IBOutlet UILabel *label_vc_tie;

@end

@implementation MJChangeController

- (void)viewDidLoad {
    [super viewDidLoad];
    _label_title.text = [NSString stringWithFormat:@"%@:",_change_title];
    _label_vc_tie.text = _change_title;
    
}
- (IBAction)sureChange:(UIButton *)sender {
    if (_textfiled.text.length>0) {
        self.changeMsg(_textfiled.text);
        [self popvc:nil];
    }
}
- (IBAction)popvc:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [_textfiled resignFirstResponder];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
